package ClassWork.Work_01;

public class Flower {
    public static void main(String[] args) {
        flower();
    }
    public static void flower(){
        for(int i=100; i<1000; i++){
            int x = i/100;
            int y = (i%100)/10;
            int z = i%10;
            int m = (int)(Math.pow(x,3)+Math.pow(y,3)+Math.pow(z,3));
            if(m==i){
                System.out.println(i);
            }
        }
    }
}
